/**
 * 
 */
package com.vision.core.sv.util;

import java.util.List;


/**
 * Interface providing method for validating a Java bean. 
 * 
 * @author Mark
 *
 */
public interface IBeanValidator<T> {
	
	/**
	 * Returns the type of object this validator validates.
	 *  
	 * @return
	 */
	Class<T> getBeanClass();
	
	/**
	 * Validates <tt>object</tt> and returns a list of String representing
	 * validation errors found.
	 * 
	 * @param object
	 * @return
	 */
	List<String> validate(T object);

}
